package com.ruoyi.mes.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mes.mapper.MesDispatchWorkersMapper;
import com.ruoyi.mes.domain.MesDispatchWorkers;
import com.ruoyi.mes.service.IMesDispatchWorkersService;

import javax.annotation.Resource;

/**
 * 生产员工Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-27
 */
@Service
public class MesDispatchWorkersServiceImpl implements IMesDispatchWorkersService 
{
    @Resource
    private MesDispatchWorkersMapper mesDispatchWorkersMapper;

    /**
     * 查询生产员工
     * 
     * @param dispatchWorkerUuid 生产员工主键
     * @return 生产员工
     */
    @Override
    public MesDispatchWorkers selectMesDispatchWorkersByDispatchWorkerUuid(String dispatchWorkerUuid)
    {
        return mesDispatchWorkersMapper.selectMesDispatchWorkersByDispatchWorkerUuid(dispatchWorkerUuid);
    }


    /**
     * 查询生产员工列表
     * 
     * @param mesDispatchWorkers 生产员工
     * @return 生产员工
     */
    @Override
    public List<MesDispatchWorkers> selectMesDispatchWorkersList(MesDispatchWorkers mesDispatchWorkers)
    {
        return mesDispatchWorkersMapper.selectMesDispatchWorkersList(mesDispatchWorkers);
    }

    /**
     * 新增生产员工
     * 
     * @param mesDispatchWorkers 生产员工
     * @return 结果
     */
    @Override
    public int insertMesDispatchWorkers(MesDispatchWorkers mesDispatchWorkers)
    {
        return mesDispatchWorkersMapper.insertMesDispatchWorkers(mesDispatchWorkers);
    }

    /**
     * 修改生产员工
     * 
     * @param mesDispatchWorkers 生产员工
     * @return 结果
     */
    @Override
    public int updateMesDispatchWorkers(MesDispatchWorkers mesDispatchWorkers)
    {
        return mesDispatchWorkersMapper.updateMesDispatchWorkers(mesDispatchWorkers);
    }

    /**
     * 批量删除生产员工
     * 
     * @param dispatchWorkerUuids 需要删除的生产员工主键
     * @return 结果
     */
    @Override
    public int deleteMesDispatchWorkersByDispatchWorkerUuids(String[] dispatchWorkerUuids)
    {
        return mesDispatchWorkersMapper.deleteMesDispatchWorkersByDispatchWorkerUuids(dispatchWorkerUuids);
    }

    /**
     * 删除生产员工信息
     * 
     * @param dispatchWorkerUuid 生产员工主键
     * @return 结果
     */
    @Override
    public int deleteMesDispatchWorkersByDispatchWorkerUuid(String dispatchWorkerUuid)
    {
        return mesDispatchWorkersMapper.deleteMesDispatchWorkersByDispatchWorkerUuid(dispatchWorkerUuid);
    }
}
